package com.example.moneybook.mapper;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.moneybook.pojo.Bill;
import com.example.moneybook.pojo.BillDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: 包
 * @Date: 2023/2/10 13:31
 * Description:
 */
@Mapper
public interface DetailMapper extends BaseMapper<Bill> {
    List<Bill> load(String userId, @Param("billDate") String billDate);

    /**
     * 查询这个月所有记账的日期
     * @param userId
     * @param billDate
     * @return
     */
    List<String> allDate(String userId, String billDate);

    /**
     * 查询单天的所有账单
     * @param userId
     * @param billDate
     * @return
     */
    List<BillDto> oneDay(String userId, String billDate);
}
